﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ACGN.Core.Models
{
   public class Product
    {
        [Key]
        public int PId { get; set; }
        [Required]
        public string PName { get; set; }
        [Required]
        public string Label { get; set; }
        [Required]
        public string Author { get; set; }
        [Required]
        public string PIntroduce { get; set; }
        [Required]
        public DateTime CreateTime { get; set; }
        [Required]
        public int ProTypeId { get; set; }
        public virtual ProType ProType { get; set; }
        public virtual ICollection<ProPicture> ProPictures { get; set; }
    }
}
